debugger;
let x = 5;
function fn(x) {
  let i = 2,
    n = 3;
  function fn1(y) {
    console.log(y + ++x);
  }
  return fn1;
}
let f = fn(6);
f(7); // 14
fn(8)(9); // 18
f(10); // 18
console.log(x); // 5
